package com.ruoyi.hqfinance.enums;

/**
 * 结算类型
 *
 * @author ruoyi
 */
public enum NetworkUndertakeCentreLevyCollectEnum
{
    settleDate("settleDate", "汇总日期"),
    totalTicket("totalTicket", "总票数"),
    surplusReceivableLevy("surplusReceivableLevy", "剩余应收派费"),
    advancePayment("advancePayment", "已收-预付款"),
    receivedLevyThrough("receivedLevyThrough", "已收-派费直达"),
    totalLevy("totalLevy", "派费合计"),
    baseLevy("baseLevy", "基础派费"),
    postDeductionTicket("postDeductionTicket", "驿站扣减票数"),
    postDeductionAmount("postDeductionAmount", "驿站扣减金额");

    private final String code;
    private final String info;

    NetworkUndertakeCentreLevyCollectEnum(String code, String info)
    {
        this.code = code;
        this.info = info;
    }

    public String getCode()
    {
        return code;
    }

    public String getInfo()
    {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (NetworkUndertakeCentreLevyCollectEnum value : NetworkUndertakeCentreLevyCollectEnum.values()) {
            if (value.code.equals(code)){
                return value.info;
            }
        }
        return "";
    }
}
